package com.fxpc.hddc.activefault.jpa.dao.primary;


import com.fxpc.hddc.activefault.dto.primary.entity.DivisionEntity;
import org.hibernate.annotations.SQLInsert;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface BaseDivisionBaseDao extends JpaRepository<DivisionEntity, String> {

//    /**
//     * 查询所有省市区的数据
//     * @return
//     */
//    @Query(nativeQuery = true,value = "select * from org_division where is_valid = '1' ")
//    List<DivisionEntity> findAllDivison();
//    /**
//     * 查询当前数据库时间
//     *
//     * @return
//     */
//    @Query(nativeQuery = true, value = "select SYSDATE();")
//    LocalDateTime getTimeNow();


}
